<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
	<style type="text/css">
	html, body {
		margin: 0;
		padding: 0;
	}
	</style>
	<input id="hidden_id" name="id" type="hidden" th:value="${id}" />
	<script src="../static/lib/jquery/jquery-3.2.1.min.js" th:src="@{/lib/jquery/jquery-1.12.4.min.js}"></script>
</head>	
<body>
	<div style="width:100%; height: 600px" th:utext="${pageoffice}" id="po_div"> </div>

<script>
function do_layout() {
	var h = $(window).height();
	var height = (h < 600 ? 600 : h - 30) + 'px';
	$("#po_div").css('height', height);
}
$(function(){
	do_layout();
	$(window).resize(function(){
		do_layout();
	})
});
function fullScreen() {
    document.getElementById("page_office").FullScreen = !document.getElementById("page_office").FullScreen;
}
function printSet() {
    document.getElementById("page_office").ShowDialog(5); 
}
function printFile() {
     document.getElementById("page_office").ShowDialog(4); 
}
function save() {
    document.getElementById("page_office").WebSave();
    var ret = document.getElementById("page_office").CustomSaveResult;
    var result = window.external.CallParentFunc("refresh('audit/stamp');");
    window.external.close(); 
}
//隐藏/显示 Office工具栏
function office_toolbar() {
    document.getElementById("page_office").OfficeToolbars = !document.getElementById("page_office").OfficeToolbars;
}
//隐藏/显示 标题栏
function title_bar() {
    document.getElementById("page_office").Titlebar = !document.getElementById("page_office").Titlebar;
}

function add_seal() {
	document.getElementById("page_office").ZoomSeal.AddSeal("李志");
}
</script>
</body>
</html>
